<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>

  import { removeToken } from '@/utils/auth'

  export default {
    name: 'app',
    created() {
      if (sessionStorage.alreadlogIn) {
        localStorage.alreadlogIn = JSON.stringify(sessionStorage.alreadlogIn)
      }
      window.addEventListener('beforeunload', e => {
        localStorage.removeItem('alreadlogIn')
      })
      window.addEventListener('unload', e => {
        localStorage.removeItem('alreadlogIn')
      })
    },
}
</script>
<style>
  body,html{
    width: 100%;
    height:100%;
    overflow-y: hidden;
    overflow-x: auto;
  }
  #app{
    height: 100%;
    width: 100%
   }
</style>
